package com.example.shop.mapper;

import com.example.shop.model.Commodity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository("commodityMapper")
public interface CommodityMapper extends Mapper<Commodity> {
    int getDataCount();
    List<Commodity> getCommodity(@Param("startNum") int startNum, @Param("pageSize") int pageSize, @Param("search") String search);
}
